﻿
// SPDlg.h: 头文件
//
#include "CLogDlg.h"
#include "CLog.h"
#include "Typedef.h"
#include "CIODlg.h"
#include "CMotorDlg.h"
#include "CMotor.h"
#include "CIO.h"
#include "CConfig.h"
#include "CControlDlg.h"
#include "CComDlg.h"
#include "CSettingDlg.h"
#include "TcpIpDlg.h"
#include "LoginDialog.h"
#include "CUserCheckDlg.h"
#include "ChangeProjectDlg.h"
#pragma once


// CSPDlg 对话框
class CSPDlg : public CDialogEx
{
// 构造
public:
	CSPDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_SP_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	
	afx_msg HCURSOR OnQueryDragIcon();
	DECLARE_MESSAGE_MAP()
public:
	virtual void OnCancel();
public:
	CMenu* m_menu;
	POINT Old;
	CLogDlg* m_LogDlg;
	CIODlg* m_IODlg;
	CMotorDlg* m_MotorDlg;
	CControlDlg * m_ControlDlg;
	CComDlg* m_ComDlg;
	CSettingDlg* m_CSetDlg;
	TcpIpDlg* m_TcpIPDlg;
	LoginDialog* m_cLoginDlg;
	CUserCheckDlg* m_cUserCheckDlg;
	CChangeProjectDlg* m_cProjectDlg;
	HBRUSH hbr;//画笔相关
	afx_msg void OnBnClickedCheckAuto();
	afx_msg void OnBnClickedButtonHome();
	afx_msg void OnBnClickedButtonHome1();
	afx_msg void OnBnClickedButtonHome2();
	afx_msg void On32771();
	afx_msg void On32777();
	afx_msg void On32778();
	afx_msg void On32779();
	afx_msg void On32780();
	afx_msg void On32781();
	CListCtrl m_listSave;
	afx_msg void On32782();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnBnClickedButton2();

	virtual BOOL PreTranslateMessage(MSG* pMsg);
	afx_msg void OnSize(UINT nType, int cx, int cy);
	HANDLE unique_mutex;
	afx_msg void On32783();
	afx_msg void OnBnClickedButton3();
	afx_msg void OnBnClickedButton5();
	afx_msg void OnBnClickedButton6();
	void SetUiHandle();
	void SetType(int num);

	afx_msg void On32784();
	afx_msg void OnLvnItemchangedListSave(NMHDR *pNMHDR, LRESULT *pResult);
};

